
<div id="article-add">
    <form action="__APP__/Article/insert" method="post" class="addarticle">
        <input type="hidden" name="sectionid" value="<{$Think.get.sid}>" />
        <input type="hidden" name="categoryid" value="<{$Think.get.cid}>" />
    <table>
        <tr>
            <td>文章名称：</td><td><input type="text" class="text" name="name" /></td>
            <td>所属单元：
            <select name="sectionid" class="sectionid">
            <option value="0">---请选择所属单元---</option>
            <volist name="list" id="vo"><option value="<{$vo['id']}>"><{$vo['name']}></option></volist>
            </select>
            </td>
        </tr>
        <tr>
            <td>别　　名：</td><td><input type="text" class="text" name="alias" /></td>
            <td>所属分类：
            <select name="categoryid" class="categoryid">
            <option value="0">---请选择所属分类---</option>
            </select>
            </td>
        </tr>
        <tr>
            <td>发　　布：</td><td><input type="radio" checked="checked" name="published" value="1" />是
            <input type="radio" name="published" value="0" />否<br /></td><td></td>
        </tr>
        <tr>
            <td>排　　序：</td><td><input type="text" name="sort" value="0" /></td><td></td>
        </tr>
        <tr><td colspan="3"><textarea id="editor_id" name="content"></textarea></td></tr>
        <tr><td colspan="3"><input type="submit" class="submit" value="添加文章" /></td></tr>
    </table>
    </form>
</div>

<script src="../Public/js/article_index.js"></script>
<script charset="utf-8" src="__PUBLIC__/kindeditor/kindeditor.js"></script>
<script charset="utf-8" src="__PUBLIC__/kindeditor/lang/zh_CN.js"></script>

<script>


    var editor;
    KindEditor.ready(function(K) {
    editor = K.create('#editor_id');
    allowFileManager : true
    });

    var options = {
    filterMode : true
    };
    var editor = K.create('textarea[name="content"]', options);


</script>